import 'babel-polyfill'
import Vue from 'vue'
import App from './App'
import router from './router'
import stores from './store/index'
// import {Toast} from 'mint-ui'

import cookie from './utils/cookies'
import http from './utils/http'
import VeeValidate from './validate'
import Loading from 'base/loading'

import fastclick from 'fastclick'

import 'iview/dist/styles/iview.css';
import 'mint-ui/lib/toast/style.css';
import 'common/less/index.less'


import filters from './filters'
Object.keys(filters).forEach(key => Vue.filter(key, filters[key]))

//移动端300毫秒延长
fastclick.attach(document.body)



Vue.use(cookie)
Vue.use(http)
Vue.use(VeeValidate)
Vue.use(Loading)

Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store:stores,
  render: h => h(App)
})
